import 'package:flutter/material.dart';

// PageView用于实现页面的滑动切换效果，常用作轮播图、抖音视频滑动等
class PageViewAllPage extends StatelessWidget {
  const PageViewAllPage({super.key});

  @override
  Widget build(BuildContext context) {
    return Center(
      child: Column(
        mainAxisAlignment: MainAxisAlignment.center,
        children: [
          ElevatedButton(
            onPressed: () {
              Navigator.pushNamed(context, "/pageView");
            },
            child: const Text("pageView"),
          ),
          ElevatedButton(
            onPressed: () {
              Navigator.pushNamed(context, "/pageViewBuilder");
            },
            child: const Text("pageViewBuilder"),
          ),
          ElevatedButton(
            onPressed: () {
              Navigator.pushNamed(context, "/pageViewFull");
            },
            child: const Text("pageViewFull无限加载"),
          ),
          ElevatedButton(
            onPressed: () {
              Navigator.pushNamed(context, "/pageViewSwiper");
            },
            child: const Text("pageViewSwiper轮播图"),
          ),
          ElevatedButton(
            onPressed: () {
              Navigator.pushNamed(context, "/pageViewKeepAlive");
            },
            child: const Text("pageViewKeepAlive"),
          ),
        ],
      ),
    );
  }
}
